$(document).on("pageinit","#pagePubmsg",function(){
	findIphoneNote(userId);
});

function findIphoneNote(userId){
	$.ajax({
		type : "GET",
		url : getContextPath() + "/receiveMessage/note",
		dataType : "json",
		data : {
			userId : userId
		},
		success : function(data) {
			if (data.result == "fail") {
				alert(data.errorCode + ":" + data.errorMessage);
				return;
			}
			if (data.result == 'success') {
				if(data.content == 0){
					return;
				}
				$("#note").append("msg:您有"+data.content+"条新消息!");
			}
		},
	});
}